package com.eduask.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.eduask.beans.TuiPiao;
import com.eduask.dao.TuiPiaoDAO;
import com.eduask.service.TuiPiaoService;

@Transactional
@Service
public class TuiPiaoServiceImpl implements TuiPiaoService{

	@Autowired
	private TuiPiaoDAO tuiPiaoDAO;
	
	@Override
	public List<TuiPiao> findAll() {
		return tuiPiaoDAO.findAllTuiPiao();
	}

	@Override
	public TuiPiao findById(Integer id) {
		return tuiPiaoDAO.findTuiPiaoById(id);
	}
}
